const Router = require('koa-router')
const tab = require('./tab')
const hotSearch = require('./hotSearch')
const account = require('./account')
const notice = require('./notice')
const report = require('./report')
const bug = require('./bug')
const article = require('./article')

let _console = new Router()

_console.use('/tab', tab.routes(), tab.allowedMethods())
_console.use('/hotSearch', hotSearch.routes(), hotSearch.allowedMethods())
_console.use('/account', account.routes(), account.allowedMethods())
_console.use('/notice', notice.routes(), notice.allowedMethods())
_console.use('/report', report.routes(), report.allowedMethods())
_console.use('/bug', bug.routes(), bug.allowedMethods())
_console.use('/article', article.routes(), article.allowedMethods())

module.exports = _console
